Skip to content

Conversation

@2501babe
Copy link
Member

this was a misfeature, i imagined it as a way for wallets to fake a sol-like deposit process (eg, i "deposit sol" every epoch, actually it merges the activated stake from the previous epoch and tees up the current sol for the next) but it is super weird and no one ever understood it. eventually it will be replaced by DepositSol, but there isnt a reason to wait until then to deprecate this because i seriously doubt anyone even uses it. if they do, they can replace it with any method of choosing a canonical address they like

this is just some ux fluff and the program itself doesnt change, it is entirely unaware of this concept and handles them like any other normal stake account

@2501babe 2501babe force-pushed the deprecate-default-deposit branch from 3881c86 to 60497d2 Compare October 17, 2025 15:55
@2501babe 2501babe force-pushed the deprecate-default-deposit branch from 60497d2 to e8ead76 Compare October 17, 2025 16:01
@2501babe 2501babe self-assigned this Oct 17, 2025
@2501babe 2501babe marked this pull request as ready for review October 17, 2025 16:13
@2501babe 2501babe requested a review from joncinque October 17, 2025 16:14
Copy link
Contributor

@joncinque joncinque left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Just a couple of nits

/// lockup.
#[deprecated(
since = "3.0.0",
note = "Will be removed in a future release; this was intended to support a wallet flow that never materialized."
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: can this provide the preferred alternative of creating and delegating a stake account?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/// user stake before deposit.
#[deprecated(
since = "3.0.0",
note = "Will be removed in a future release; this was intended to support a wallet flow that never materialized."
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: same here, can this give the alternative of using any new stake account address instead?

Copy link
Contributor

@joncinque joncinque left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great!

@2501babe 2501babe merged commit be71de0 into solana-program:main Oct 21, 2025
18 checks passed
@2501babe 2501babe deleted the deprecate-default-deposit branch October 21, 2025 17:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants